using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 除法运算
/// </summary>
public class OperationDiv : Operation
{
    public override double GetResult()
    {
        double result = 0;

        if (NumberB == 0)
        {
            Debug.LogError("除数不能为零");  // 打印最好封装下，做到通用可移植
            return 0;
        }

        result = NumberA / NumberB;

        return result;
    }
}
